﻿using System;

namespace XBD.MyCMSPro
{
    public partial class Program
    {
        //用户类
        public class User
        {
            public bool isUserlogin;
            public void Login()
            {
                string username;
                string password;
                username = CmdReder("用户名:");
                if (username != "Kevin")
                {
                    Console.WriteLine("查无此人");
                    return;
                }
                password = CmdReder("密码:");
                if (password != "123456")
                {
                    Console.WriteLine("密码错误,退出系统!");
                    return;
                }
                isUserlogin = true;
            }
        }

    }
}
